package com.xyyl.patient.service.common;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.xyyl.patient.mapper.user.BindAxbMapper;
import com.xyyl.patient.entity.base.BindAxbEntity;
import com.xyyl.patient.service.base.BindAxbService;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


/**
 * @author @author kellie
 * @projectName:xyyl-patient
 * @ClassName: BindAxb
 * @Description:BindAxb
 * @date 2018-05-25 14:22:28
 */
@Service("bindAxbService")
public class BindAxbServiceImpl implements BindAxbService {

    @Autowired
    private BindAxbMapper bindAxbMapper;

    @Override
    public BindAxbEntity queryObject(Integer id) {
        return bindAxbMapper.selectOne(id);
    }
    @Override
    public List<BindAxbEntity>  selectAxbList(String aPhone){
        return bindAxbMapper.selectAxbList(aPhone);
    }
    @Override
    public BindAxbEntity  selectAxbObject(String aPhone, String bPhone){
        return bindAxbMapper.selectAxbObject(aPhone,bPhone);
    }
    @Override
    public void saveBindAxb(BindAxbEntity BindAxbEntity) {

        bindAxbMapper.insert(BindAxbEntity);
    }

    @Override
    public void updateBindAxb(BindAxbEntity BindAxbEntity) {

        bindAxbMapper.update(BindAxbEntity);
    }

    @Override
    public void deleteBindAxb(Integer id) {
        bindAxbMapper.delete(id);

    }


}
